-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(backend): add scheduled send functionality #1091
base: master
Are you sure you want to change the base?
feat(backend): add scheduled send functionality #1091
Conversation
7aaffb2
to
0c58a6a
Compare
Will this work with JMAP as well? |
0c58a6a
to
0aef136
Compare
Yes, anything we add for IMAP, we should check JMAP support as well. Overall, it is built on top of IMAP, so it should work but please check if the new Scheduled folder is OK for JMAP. Overall, the code is good but I have one concern - it only sends out while you are actively using Cypht and it seems to warn of unsent/scheduled messages each time you leave a page (onbeforeunload). That would be annoying for the end user. I believe this comment #576 (comment) proposes using sendAt support from jmap servers or scheduled send - if it is supported, we use it, if not, we fallback to a more annoying option. At any rate, it should be configurable. This could be fully-supported in the Cypht-Tiki integration where there could be a Tiki command run periodically in the scheduler that checks and sends scheduled messages. |
@kroky I added a commit to fix issue concerning onbeforeunload event and also add the option to change schedule time or send the message immediately. Can you check please. |
36599a8
to
2da4ff4
Compare
@amaninyumu1 If you need help with JMAP, please reach out to @Shadow243 as he set up a JMAP server for testing. |
45374ae
to
bdf9d5d
Compare
cf0574d
to
af1c185
Compare
@amaninyumu1 "This branch has conflicts that must be resolved" |
141f8d9
to
16293f5
Compare
16293f5
to
41c9b95
Compare
41c9b95
to
3fb7802
Compare
@amaninyumu1 This branch has conflicts that must be resolved |
3fb7802
to
e725bcc
Compare
Hello @marclaporte , @kroky I resolved the conflicts. please review |
There are still conflicts and I believe big part of the reason is #1266 - @jacob-js , can you check if some handlers in this PR need to be updated according to the router changes you did in 1266? |
8ca8a62
to
b5cd302
Compare
$mailbox = new Hm_Mailbox($server_id, $user_config, $session, $config); for this new way of initializing Mailbox triggers unexpected errors like: |
Removed redundant showRoutingToast() and hideRoutingToast() calls in reload_and_redirect function as navigate() handles them. Streamlined the process for scheduling and snoozing actions.
…or: Call to undefined method Hm_Mailbox::get_mailbox_status()
…modules/imap/functions.php
Fixed typo with double 'p'. Used switch statement in 'get_scheduled_date' and other
@amaninyumu1 you cannot use send_message method on an IMAP account - what would it mean? Mailbox on top of SMTP or EWS can send out emails and send_message is OK there but not on an IMAP account. For IMAP, there is store_message which stores a message in a specific folder. Please check your calling code. |
@kroky the message is already stored in the scheduled folder I would like to implement the |
You can't send through an IMAP account. Use its corresponding SMTP or EWS account stored in a profile or use the default SMTP account. Show error if there is no configured account to send from. |
@kroky I think this method is better for sending a message |
06a57a4
to
27e2cbe
Compare
- Event handlers attached directly to target elements to avoid multiple bindings. - Rename parse_nexter_header to parse_delayed_header to avoid confusion. - Replacement of “var” by “let”.
issue
issue